package org.demo.db.xsd;
/**
 * 元数据：field element
 * @author  
 * @date    2010-8-30
 * @file    org.gen.db.meta.FieldEl.java
 */
public class FieldEl {
	private String name;
	private String foreignKey;
	private boolean primaryKey;
	private String uid;
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getForeignKey() {
		return foreignKey;
	}
	public void setForeignKey(String foreignKey) {
		this.foreignKey = foreignKey;
	}
	public boolean isPrimaryKey() {
		return primaryKey;
	}
	public void setPrimaryKey(boolean primaryKey) {
		this.primaryKey = primaryKey;
	}
	public String getUid() {
		return uid;
	}
	public void setUid(String uid) {
		if (uid.equals("auto")){
			uid = "AUTO";
		}
		this.uid = uid;
	}
}
